package com.sz.stock.model;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class TUserExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TUserExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andUseridIsNull() {
            addCriterion("STOCK_USERID is null");
            return (Criteria) this;
        }

        public Criteria andUseridIsNotNull() {
            addCriterion("STOCK_USERID is not null");
            return (Criteria) this;
        }

        public Criteria andUseridEqualTo(Integer value) {
            addCriterion("STOCK_USERID =", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotEqualTo(Integer value) {
            addCriterion("STOCK_USERID <>", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThan(Integer value) {
            addCriterion("STOCK_USERID >", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThanOrEqualTo(Integer value) {
            addCriterion("STOCK_USERID >=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThan(Integer value) {
            addCriterion("STOCK_USERID <", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThanOrEqualTo(Integer value) {
            addCriterion("STOCK_USERID <=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridIn(List<Integer> values) {
            addCriterion("STOCK_USERID in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotIn(List<Integer> values) {
            addCriterion("STOCK_USERID not in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridBetween(Integer value1, Integer value2) {
            addCriterion("STOCK_USERID between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotBetween(Integer value1, Integer value2) {
            addCriterion("STOCK_USERID not between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andUsernameIsNull() {
            addCriterion("STOCK_USERNAME is null");
            return (Criteria) this;
        }

        public Criteria andUsernameIsNotNull() {
            addCriterion("STOCK_USERNAME is not null");
            return (Criteria) this;
        }

        public Criteria andUsernameEqualTo(String value) {
            addCriterion("STOCK_USERNAME =", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameNotEqualTo(String value) {
            addCriterion("STOCK_USERNAME <>", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameGreaterThan(String value) {
            addCriterion("STOCK_USERNAME >", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameGreaterThanOrEqualTo(String value) {
            addCriterion("STOCK_USERNAME >=", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameLessThan(String value) {
            addCriterion("STOCK_USERNAME <", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameLessThanOrEqualTo(String value) {
            addCriterion("STOCK_USERNAME <=", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameLike(String value) {
            addCriterion("STOCK_USERNAME like", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameNotLike(String value) {
            addCriterion("STOCK_USERNAME not like", value, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameIn(List<String> values) {
            addCriterion("STOCK_USERNAME in", values, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameNotIn(List<String> values) {
            addCriterion("STOCK_USERNAME not in", values, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameBetween(String value1, String value2) {
            addCriterion("STOCK_USERNAME between", value1, value2, "username");
            return (Criteria) this;
        }

        public Criteria andUsernameNotBetween(String value1, String value2) {
            addCriterion("STOCK_USERNAME not between", value1, value2, "username");
            return (Criteria) this;
        }

        public Criteria andUserpwdIsNull() {
            addCriterion("STOCK_USERPWD is null");
            return (Criteria) this;
        }

        public Criteria andUserpwdIsNotNull() {
            addCriterion("STOCK_USERPWD is not null");
            return (Criteria) this;
        }

        public Criteria andUserpwdEqualTo(String value) {
            addCriterion("STOCK_USERPWD =", value, "userpwd");
            return (Criteria) this;
        }

        public Criteria andUserpwdNotEqualTo(String value) {
            addCriterion("STOCK_USERPWD <>", value, "userpwd");
            return (Criteria) this;
        }

        public Criteria andUserpwdGreaterThan(String value) {
            addCriterion("STOCK_USERPWD >", value, "userpwd");
            return (Criteria) this;
        }

        public Criteria andUserpwdGreaterThanOrEqualTo(String value) {
            addCriterion("STOCK_USERPWD >=", value, "userpwd");
            return (Criteria) this;
        }

        public Criteria andUserpwdLessThan(String value) {
            addCriterion("STOCK_USERPWD <", value, "userpwd");
            return (Criteria) this;
        }

        public Criteria andUserpwdLessThanOrEqualTo(String value) {
            addCriterion("STOCK_USERPWD <=", value, "userpwd");
            return (Criteria) this;
        }

        public Criteria andUserpwdLike(String value) {
            addCriterion("STOCK_USERPWD like", value, "userpwd");
            return (Criteria) this;
        }

        public Criteria andUserpwdNotLike(String value) {
            addCriterion("STOCK_USERPWD not like", value, "userpwd");
            return (Criteria) this;
        }

        public Criteria andUserpwdIn(List<String> values) {
            addCriterion("STOCK_USERPWD in", values, "userpwd");
            return (Criteria) this;
        }

        public Criteria andUserpwdNotIn(List<String> values) {
            addCriterion("STOCK_USERPWD not in", values, "userpwd");
            return (Criteria) this;
        }

        public Criteria andUserpwdBetween(String value1, String value2) {
            addCriterion("STOCK_USERPWD between", value1, value2, "userpwd");
            return (Criteria) this;
        }

        public Criteria andUserpwdNotBetween(String value1, String value2) {
            addCriterion("STOCK_USERPWD not between", value1, value2, "userpwd");
            return (Criteria) this;
        }

        public Criteria andUserphoneIsNull() {
            addCriterion("STOCK_USERPHONE is null");
            return (Criteria) this;
        }

        public Criteria andUserphoneIsNotNull() {
            addCriterion("STOCK_USERPHONE is not null");
            return (Criteria) this;
        }

        public Criteria andUserphoneEqualTo(String value) {
            addCriterion("STOCK_USERPHONE =", value, "userphone");
            return (Criteria) this;
        }

        public Criteria andUserphoneNotEqualTo(String value) {
            addCriterion("STOCK_USERPHONE <>", value, "userphone");
            return (Criteria) this;
        }

        public Criteria andUserphoneGreaterThan(String value) {
            addCriterion("STOCK_USERPHONE >", value, "userphone");
            return (Criteria) this;
        }

        public Criteria andUserphoneGreaterThanOrEqualTo(String value) {
            addCriterion("STOCK_USERPHONE >=", value, "userphone");
            return (Criteria) this;
        }

        public Criteria andUserphoneLessThan(String value) {
            addCriterion("STOCK_USERPHONE <", value, "userphone");
            return (Criteria) this;
        }

        public Criteria andUserphoneLessThanOrEqualTo(String value) {
            addCriterion("STOCK_USERPHONE <=", value, "userphone");
            return (Criteria) this;
        }

        public Criteria andUserphoneLike(String value) {
            addCriterion("STOCK_USERPHONE like", value, "userphone");
            return (Criteria) this;
        }

        public Criteria andUserphoneNotLike(String value) {
            addCriterion("STOCK_USERPHONE not like", value, "userphone");
            return (Criteria) this;
        }

        public Criteria andUserphoneIn(List<String> values) {
            addCriterion("STOCK_USERPHONE in", values, "userphone");
            return (Criteria) this;
        }

        public Criteria andUserphoneNotIn(List<String> values) {
            addCriterion("STOCK_USERPHONE not in", values, "userphone");
            return (Criteria) this;
        }

        public Criteria andUserphoneBetween(String value1, String value2) {
            addCriterion("STOCK_USERPHONE between", value1, value2, "userphone");
            return (Criteria) this;
        }

        public Criteria andUserphoneNotBetween(String value1, String value2) {
            addCriterion("STOCK_USERPHONE not between", value1, value2, "userphone");
            return (Criteria) this;
        }

        public Criteria andUserroleIsNull() {
            addCriterion("STOCK_USERROLE is null");
            return (Criteria) this;
        }

        public Criteria andUserroleIsNotNull() {
            addCriterion("STOCK_USERROLE is not null");
            return (Criteria) this;
        }

        public Criteria andUserroleEqualTo(Integer value) {
            addCriterion("STOCK_USERROLE =", value, "userrole");
            return (Criteria) this;
        }

        public Criteria andUserroleNotEqualTo(Integer value) {
            addCriterion("STOCK_USERROLE <>", value, "userrole");
            return (Criteria) this;
        }

        public Criteria andUserroleGreaterThan(Integer value) {
            addCriterion("STOCK_USERROLE >", value, "userrole");
            return (Criteria) this;
        }

        public Criteria andUserroleGreaterThanOrEqualTo(Integer value) {
            addCriterion("STOCK_USERROLE >=", value, "userrole");
            return (Criteria) this;
        }

        public Criteria andUserroleLessThan(Integer value) {
            addCriterion("STOCK_USERROLE <", value, "userrole");
            return (Criteria) this;
        }

        public Criteria andUserroleLessThanOrEqualTo(Integer value) {
            addCriterion("STOCK_USERROLE <=", value, "userrole");
            return (Criteria) this;
        }

        public Criteria andUserroleIn(List<Integer> values) {
            addCriterion("STOCK_USERROLE in", values, "userrole");
            return (Criteria) this;
        }

        public Criteria andUserroleNotIn(List<Integer> values) {
            addCriterion("STOCK_USERROLE not in", values, "userrole");
            return (Criteria) this;
        }

        public Criteria andUserroleBetween(Integer value1, Integer value2) {
            addCriterion("STOCK_USERROLE between", value1, value2, "userrole");
            return (Criteria) this;
        }

        public Criteria andUserroleNotBetween(Integer value1, Integer value2) {
            addCriterion("STOCK_USERROLE not between", value1, value2, "userrole");
            return (Criteria) this;
        }

        public Criteria andUsernumberidIsNull() {
            addCriterion("STOCK_USERNUMBERID is null");
            return (Criteria) this;
        }

        public Criteria andUsernumberidIsNotNull() {
            addCriterion("STOCK_USERNUMBERID is not null");
            return (Criteria) this;
        }

        public Criteria andUsernumberidEqualTo(String value) {
            addCriterion("STOCK_USERNUMBERID =", value, "usernumberid");
            return (Criteria) this;
        }

        public Criteria andUsernumberidNotEqualTo(String value) {
            addCriterion("STOCK_USERNUMBERID <>", value, "usernumberid");
            return (Criteria) this;
        }

        public Criteria andUsernumberidGreaterThan(String value) {
            addCriterion("STOCK_USERNUMBERID >", value, "usernumberid");
            return (Criteria) this;
        }

        public Criteria andUsernumberidGreaterThanOrEqualTo(String value) {
            addCriterion("STOCK_USERNUMBERID >=", value, "usernumberid");
            return (Criteria) this;
        }

        public Criteria andUsernumberidLessThan(String value) {
            addCriterion("STOCK_USERNUMBERID <", value, "usernumberid");
            return (Criteria) this;
        }

        public Criteria andUsernumberidLessThanOrEqualTo(String value) {
            addCriterion("STOCK_USERNUMBERID <=", value, "usernumberid");
            return (Criteria) this;
        }

        public Criteria andUsernumberidLike(String value) {
            addCriterion("STOCK_USERNUMBERID like", value, "usernumberid");
            return (Criteria) this;
        }

        public Criteria andUsernumberidNotLike(String value) {
            addCriterion("STOCK_USERNUMBERID not like", value, "usernumberid");
            return (Criteria) this;
        }

        public Criteria andUsernumberidIn(List<String> values) {
            addCriterion("STOCK_USERNUMBERID in", values, "usernumberid");
            return (Criteria) this;
        }

        public Criteria andUsernumberidNotIn(List<String> values) {
            addCriterion("STOCK_USERNUMBERID not in", values, "usernumberid");
            return (Criteria) this;
        }

        public Criteria andUsernumberidBetween(String value1, String value2) {
            addCriterion("STOCK_USERNUMBERID between", value1, value2, "usernumberid");
            return (Criteria) this;
        }

        public Criteria andUsernumberidNotBetween(String value1, String value2) {
            addCriterion("STOCK_USERNUMBERID not between", value1, value2, "usernumberid");
            return (Criteria) this;
        }

        public Criteria andUserbalanceIsNull() {
            addCriterion("STOCK_USERBALANCE is null");
            return (Criteria) this;
        }

        public Criteria andUserbalanceIsNotNull() {
            addCriterion("STOCK_USERBALANCE is not null");
            return (Criteria) this;
        }

        public Criteria andUserbalanceEqualTo(String value) {
            addCriterion("STOCK_USERBALANCE =", value, "userbalance");
            return (Criteria) this;
        }

        public Criteria andUserbalanceNotEqualTo(BigDecimal value) {
            addCriterion("STOCK_USERBALANCE <>", value, "userbalance");
            return (Criteria) this;
        }

        public Criteria andUserbalanceGreaterThan(BigDecimal value) {
            addCriterion("STOCK_USERBALANCE >", value, "userbalance");
            return (Criteria) this;
        }

        public Criteria andUserbalanceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("STOCK_USERBALANCE >=", value, "userbalance");
            return (Criteria) this;
        }

        public Criteria andUserbalanceLessThan(BigDecimal value) {
            addCriterion("STOCK_USERBALANCE <", value, "userbalance");
            return (Criteria) this;
        }

        public Criteria andUserbalanceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("STOCK_USERBALANCE <=", value, "userbalance");
            return (Criteria) this;
        }

        public Criteria andUserbalanceIn(List<BigDecimal> values) {
            addCriterion("STOCK_USERBALANCE in", values, "userbalance");
            return (Criteria) this;
        }

        public Criteria andUserbalanceNotIn(List<BigDecimal> values) {
            addCriterion("STOCK_USERBALANCE not in", values, "userbalance");
            return (Criteria) this;
        }

        public Criteria andUserbalanceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("STOCK_USERBALANCE between", value1, value2, "userbalance");
            return (Criteria) this;
        }

        public Criteria andUserbalanceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("STOCK_USERBALANCE not between", value1, value2, "userbalance");
            return (Criteria) this;
        }

        public Criteria andUserpaypwdIsNull() {
            addCriterion("STOCK_USERPAYPWD is null");
            return (Criteria) this;
        }

        public Criteria andUserpaypwdIsNotNull() {
            addCriterion("STOCK_USERPAYPWD is not null");
            return (Criteria) this;
        }

        public Criteria andUserpaypwdEqualTo(String value) {
            addCriterion("STOCK_USERPAYPWD =", value, "userpaypwd");
            return (Criteria) this;
        }

        public Criteria andUserpaypwdNotEqualTo(String value) {
            addCriterion("STOCK_USERPAYPWD <>", value, "userpaypwd");
            return (Criteria) this;
        }

        public Criteria andUserpaypwdGreaterThan(String value) {
            addCriterion("STOCK_USERPAYPWD >", value, "userpaypwd");
            return (Criteria) this;
        }

        public Criteria andUserpaypwdGreaterThanOrEqualTo(String value) {
            addCriterion("STOCK_USERPAYPWD >=", value, "userpaypwd");
            return (Criteria) this;
        }

        public Criteria andUserpaypwdLessThan(String value) {
            addCriterion("STOCK_USERPAYPWD <", value, "userpaypwd");
            return (Criteria) this;
        }

        public Criteria andUserpaypwdLessThanOrEqualTo(String value) {
            addCriterion("STOCK_USERPAYPWD <=", value, "userpaypwd");
            return (Criteria) this;
        }

        public Criteria andUserpaypwdLike(String value) {
            addCriterion("STOCK_USERPAYPWD like", value, "userpaypwd");
            return (Criteria) this;
        }

        public Criteria andUserpaypwdNotLike(String value) {
            addCriterion("STOCK_USERPAYPWD not like", value, "userpaypwd");
            return (Criteria) this;
        }

        public Criteria andUserpaypwdIn(List<String> values) {
            addCriterion("STOCK_USERPAYPWD in", values, "userpaypwd");
            return (Criteria) this;
        }

        public Criteria andUserpaypwdNotIn(List<String> values) {
            addCriterion("STOCK_USERPAYPWD not in", values, "userpaypwd");
            return (Criteria) this;
        }

        public Criteria andUserpaypwdBetween(String value1, String value2) {
            addCriterion("STOCK_USERPAYPWD between", value1, value2, "userpaypwd");
            return (Criteria) this;
        }

        public Criteria andUserpaypwdNotBetween(String value1, String value2) {
            addCriterion("STOCK_USERPAYPWD not between", value1, value2, "userpaypwd");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}